package cn.zyq.ykb.beans.tk;

import cn.zyq.ykb.system.common.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 菜单收藏对象 menuCollect
 *
 * @author SystemAuth
 * @date 2023-10-20
 */
@Data
@Entity
@Table(name = "`menuCollect`")
public class MenuCollect  extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`menuCollectID`")
    @ApiModelProperty("主键id，用于关联")
    private Integer menuCollectID;
    /**
     * 收藏人ID
     */
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`tUserID`")
    @ApiModelProperty("收藏人ID")
    private Integer tUserID;
    /**
     * 菜单ID
     */
    @Column(name = "`menuID`")
    @ApiModelProperty("菜单ID")
    private Integer menuID;
    /**
     * 状态（1.有效收藏，2取消收藏）
     */
    @Column(name = "`state`")
    @ApiModelProperty("状态（1.有效收藏，2取消收藏）")
    private Integer state;

    @Transient
    private Menu menu;
}
